import java.io.*;
import java.lang.*;

public class first 
{ 
     private static int num = 7; /* can only be used by methods in this class and
     no other class may access this instance variable */

     public static int getNum()
     {
      return num;
     }
     
     public static void main(String[] args)
     {
       int num1 = 5, num2 = 6, num3;
       System.out.println(num1 < 5 ? 10:20);
       boolean isbigger = (num1 == num2);
       System.out.println(isbigger);
       System.out.println(~num2);
       callingthisMethod();
       System.out.println("129 is really " + badByte());
       num3 = badByte();
       num = getNum();
       System.out.println("num is " +num);
     } 

     public static void callingthisMethod() 
     { 
       System.out.println("calling method from the first class"); 
     } 

     public static byte badByte() 
     {
       int a = 129;
       byte bad = (byte) a;
       return bad; 
     } 
      
} 

